package Week.Week315;

public class p3 {
    class Solution {
        public boolean sumOfNumberAndReverse(int num) {
            if (num < 10 && num % 2 == 0) return true;
            for (int i = 0; i < 9; i++) {
                for (int j = 0; j < 9; j++) {
                    for (int k = 0; k < 9; k++) {
                        if (101 * (i + j) + 20 * k == num){
                            return true;
                        }
                    }
                }
            }
            return false;
        }
    }
}
